import { Base } from '../../utils/base.js';

class Getphone extends Base {
  constructor() {
    super();
  }

  ttTelLogin (tel, verification_code,code, anonymousCode,callBack) {
    var param = {
      url: 'ttTelLogin?tel=' + tel + '&verification_code=' + verification_code +'&code='+ code + '&anonymousCode=' +anonymousCode,
      sCallBack: function (data) {
        callBack && callBack(data);
      },
      type:'POST'
    };
    this.request(param);
  }

  ttTelCode(tel,callBack){
    var params = {
      url: 'ttTelCode?tel=' + tel,
      sCallBack: function (res) {
        callBack && callBack(res);
      }
    };
    this.request(params);
  }
}

export { Getphone };